<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title></title>
    <link rel="stylesheet" href="./css/normalize_zh.css">
    <link rel="stylesheet" href="./css/cast.css">
    <link rel="stylesheet" href="css/baseShop.css">
    <!-- http://127.0.0.1:3000/game/cart.html -->
</head>

<body>
    <header class="y_header">
        <nav>
            <div id="userName" class="userdiv"></div>
        </nav>
    </header>
    <section>
        <div class="y_Allgood">
            <div class="y_good_nav">
                <ul>
                    <li><a href="" class="active">全部商品<span id="my_all_shop"></span></a></li>
                    <li><a href="">降价商品<span>0</span></a></li>
                    <li><a href="">库存紧张<span>0</span></a></li>
                </ul>
                <div class="wrap-line">
                    <div class="floater" style="width: 132px; left: -1px;">
                    </div>
                </div>
                <div class="y_top_news y_div_h50_lh_50">
                    <div class="selectAll y_div_h50_lh_50 ">
                        <input type="checkbox" id="checkAll" onchange=javascript:selectAll(1) />
                        <span class="y_font_margin_top">全选</span>
                    </div>
                    <div class="y_div_h50_lh_50 margin_25 ">
                        商品信息
                    </div>
                    <div class="y_div_h50_lh_50 ">
                        操作
                    </div>
                    <div class="y_div_h50_lh_50 ">
                        金额
                    </div>
                    <div class="y_div_h50_lh_50  ">
                        数量
                    </div>
                    <div class="y_div_h50_lh_50 ">
                        单价
                    </div>
                </div>
            </div>
            <div class="y_good_Item" id="lists">
                <div class="y_shopName">
                    <span>店铺：战双帕弥什官方店</span>
                    <div class="y_ali-icon"></div>
                </div>
                <div id="good_Item_all">

                </div>
            </div>
            <div class="y_clear_goodsList">
                <ul>
                    <li class="y_selectAll">
                        <input type="checkbox" id="checkAll2" onchange=javascript:selectAll(2) />
                        <a href="#">全选</a>
                    </li>
                    <li class="y_deleteShop"><a href="javascript:selectDelete()">删除</a></li>
                    <li class="y_remove_collect">
                        <a href="">移入收藏</a>
                    </li>
                    <li class="y_share"><a href="">分享</a></li>
                    <li class="y_readySelectNum">
                        <span>
                            <span>已选商品</span>
                        <span id=shop_count>0</span>
                        <span>件</span>
                        </span>
                        <span class="y_readySelectShopItem">合计（不含运费）：
                            <span id="total">0.00</span>
                        </span>
                    </li>
                    <li><button class="y_clear_button" id="btn_total" onclick="addOrderId()">结算</button></li>
                </ul>
            </div>
    </section>
    <script src="../game/js/jquery-3.1.1.min.js"></script>
    <script src="res/artTemplate/template-native.js"></script>
    <script src="./js/base.js"></script>
    <script src="./js/cart.js"></script>
    <script type="text/template" id="userTpl">
        <%if(userInfo!==""){%>
            <a href="#" class="userColor"><span>欢迎登陆 &nbsp <%=userInfo%></span>
                <a href="javascript:loginOut();" class="userColor">&nbsp &nbsp 退出</a>

            </a>
            <% } else {%>
                <a href="login.html" class="userColor">登录<%=userInfo%></a>
                <% }%>
    </script>
    <script type="text/template" id="cartTpl">
        <% for(let i=0;i<data.length;i++) {%>
            <div class="y_good_shopItem">
                <ul>
                    <li class="select">
                        <input type="checkbox" name="checkOne" class="margin_27 " data-id="<%=data[i].productId%>" onclick="selectOne(<%=i%>)">
                    </li>
                    <li class="detail">
                        <div class="y_div_80"><img src="<%=data[i].pic[0].picAddr%>" alt=""></div>
                        <a href="" class="title">
                            <%=data[i].proName%>
                        </a>
                    </li>
                    <li class="size">
                        <p>大小：30*70CM</p>
                        <p>颜色分类：咖啡馆之约款</p>
                    </li>
                    <li class="price">￥<span class="unitPrice"><%=(data[i].price).toFixed(2)%></span></li>
                    <li class="num">
                        <div class="control">
                            <button class="str num-minus _num" onclick="str(<%=i%>)">-</button>
                            <input type="text" value="<%=data[i].num%>" class="amount">
                            <button class="add num-plus _num" onclick="add(<%=i%>)">+</button>
                        </div>
                    </li>
                    <li class="price_sum"> ￥<span class="subtotal">
                       <%=(data[i].price*data[i].num).toFixed(2)%>
                    </span></li>
                    <li class="info">
                        <p><a href="#">移入收藏</a></p>
                        <p>
                            <a href="javascript:deleteCartInfo([<%=data[i].productId%>])" data-cartId="
                                <%=data[i].productId%>" name="deleteOne">删除</a>
                        </p>
                    </li>

                </ul>
            </div>
            <%}%>
    </script>
    <script src="./js/cart_.js"></script>

</body>

</html>